import request from '@/utils/request'

// 查询自媒体图文引用素材信息列表
export function listMaterial1(query) {
  return request({
    url: '/tot/material1/list',
    method: 'get',
    params: query
  })
}

// 查询自媒体图文引用素材信息详细
export function getMaterial1(id) {
  return request({
    url: '/tot/material1/' + id,
    method: 'get'
  })
}

// 新增自媒体图文引用素材信息
export function addMaterial1(data) {
  return request({
    url: '/tot/material1',
    method: 'post',
    data: data
  })
}

// 修改自媒体图文引用素材信息
export function updateMaterial1(data) {
  return request({
    url: '/tot/material1',
    method: 'put',
    data: data
  })
}

// 删除自媒体图文引用素材信息
export function delMaterial1(id) {
  return request({
    url: '/tot/material1/' + id,
    method: 'delete'
  })
}
